package com.ls.fw.hadoop.client.bean;

import java.io.Serializable;

/**
 * 
 * <p>
 * </p>
 * 
 * @author ls 2013-9-9 下午02:29:34
 * @version V1.0
 * @modificationHistory=========================逻辑或功能性重大变更记录
 * @modify by user: {修改人} 2013-9-9
 * @modify by reason:{方法名}:{原因}
 */
public class HbaseStatus implements Serializable {
	/**
	 * 序列化ID
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private String ip;
	private boolean isMaster = false;
	private long usedHeap = 0;
	private long maxHeap = 0;
	private long memstoreSize = 0;
	private boolean isDead = false;
	private String startTime = "";

	public HbaseStatus(String name, String ip, boolean isMaster, long usedHeap,
			long maxHeap, long memstoreSize, boolean isDead, String startTime) {
		super();
		this.name = name;
		this.ip = ip;
		this.isMaster = isMaster;
		this.usedHeap = usedHeap;
		this.maxHeap = maxHeap;
		this.memstoreSize = memstoreSize;
		this.isDead = isDead;
		this.startTime = startTime;
	}

	public HbaseStatus(String name) {
		super();
		this.name = name;
	}

	public HbaseStatus(String name, String ip, boolean isMaster) {
		super();
		this.name = name;
		this.ip = ip;
		this.isMaster = isMaster;
	}

	public HbaseStatus(String name, String ip) {
		super();
		this.name = name;
		this.ip = ip;
	}

	public HbaseStatus(boolean isMaster, boolean isDead, String name, String ip) {
		super();
		this.isMaster = isMaster;
		this.isDead = isDead;
		this.name = name;
		this.ip = ip;
	}

	public HbaseStatus(boolean isMaster, boolean isDead, String name,
			String ip, String startTime) {
		super();
		this.isMaster = isMaster;
		this.isDead = isDead;
		this.name = name;
		this.ip = ip;
		this.startTime = startTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getUsedHeap() {
		return usedHeap;
	}

	public void setUsedHeap(long usedHeap) {
		this.usedHeap = usedHeap;
	}

	public long getMaxHeap() {
		return maxHeap;
	}

	public void setMaxHeap(long maxHeap) {
		this.maxHeap = maxHeap;
	}

	public long getMemstoreSize() {
		return memstoreSize;
	}

	public void setMemstoreSize(long memstoreSize) {
		this.memstoreSize = memstoreSize;
	}

	public void setDead(boolean isDead) {
		this.isDead = isDead;
	}

	public boolean isDead() {
		return isDead;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getStartTime() {
		return startTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public boolean isMaster() {
		return isMaster;
	}

	public void setMaster(boolean isMaster) {
		this.isMaster = isMaster;
	}

	@Override
	public String toString() {
		return "HbaseStatus [ip=" + ip + ", isDead=" + isDead + ", isMaster="
				+ isMaster + ", maxHeap=" + maxHeap + ", memstoreSize="
				+ memstoreSize + ", name=" + name + ", startTime=" + startTime
				+ ", usedHeap=" + usedHeap + "]";
	}

}
